﻿@model BMS.ViewModels.ClientModelList

@{
    ViewBag.Title = "Client Maintenance";
}

@section featured {
    <section class="featured">
        <div class="content-wrapper" align="center">
            <hgroup class="title">
                <h1>@ViewBag.Message</h1>
            </hgroup>
        </div>
    </section>
}

<section id="clientRegForm">
    <h2>New Client Registration</h2>
    <br />
    @using (Html.BeginForm("CreateClient", "Maintenance"))
    {
        <fieldset>
            <table border="0">
                <tr>
                    <td align="right">@Html.LabelFor(m => m.client.ClientName)</td>
                    <td align="left">@Html.TextBoxFor(m => m.client.ClientName, new { style = "width:200px"})</td>
                </tr>
                <tr>
                    <td align="right">@Html.LabelFor(m => m.client.Address1)</td>
                    <td align="left">@Html.TextBoxFor(m => m.client.Address1, new { style = "width:300px" })</td>
                </tr>
                <tr>
                    <td align="right">@Html.LabelFor(m => m.client.Address2)</td>
                    <td align="left">@Html.TextBoxFor(m => m.client.Address2, new { style = "width:300px" })</td>
                </tr>
                <tr>
                    <td align="right">@Html.LabelFor(m => m.client.Address3)</td>
                    <td align="left">@Html.TextBoxFor(m => m.client.Address3, new { style = "width:300px" })</td>
                </tr>
                <tr>
                    <td align="right">@Html.LabelFor(m => m.client.Address4)</td>
                    <td align="left">@Html.TextBoxFor(m => m.client.Address4, new { style = "width:300px" })</td>
                </tr>
                <tr>
                    <td align="right">@Html.LabelFor(m => m.client.Address5)</td>
                    <td align="left">@Html.TextBoxFor(m => m.client.Address5, new { style = "width:300px" })</td>
                </tr>
                <tr>
                    <td align="right">@Html.LabelFor(m => m.client.TelephoneNo)</td>
                    <td align="left">@Html.TextBoxFor(m => m.client.TelephoneNo, new { style = "width:150px" })</td>
                </tr>
                <tr>
                    <td align="right">@Html.LabelFor(m => m.client.FaxNo)</td>
                    <td align="left">@Html.TextBoxFor(m => m.client.FaxNo, new { style = "width:150px" })</td>
                </tr>
                <tr>
                    <td align="right">@Html.LabelFor(m => m.client.AttentionTo)</td>
                    <td align="left">@Html.TextBoxFor(m => m.client.AttentionTo, new { style = "width:150px" })</td>
                </tr>
                <tr>
                    <td align="right">@Html.LabelFor(m => m.client.FMName)</td>
                    <td align="left">@Html.DropDownList("FMNameSV", Model.fmList, "")</td>
                </tr>
                <tr>
                    <td align="right">@Html.LabelFor(m => m.client.CompanyName)</td>
                    <td align="left">@Html.DropDownList("CompanyNameSV", Model.companyList, "")</td>
                </tr>
                <tr>
                    <td align="right">@Html.LabelFor(m => m.client.SubContName)</td>
                    <td align="left">@Html.DropDownList("SubContractorNameSV", Model.subContList, "")</td>
                </tr>
            </table>
            <br />
            <input type="submit" value="Create" />
        </fieldset>
    }
    @using (Html.BeginForm("BackToMainMeun", "Home"))
    {
        <br />
        <input type="submit" value="Back To Main Menu" />
    }
</section>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}